package cn.cloud9.designpattern.dp07decorator.decorator;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 11:14
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        Pancake pancake = new BasePancake();
        System.out.println(pancake.getMsg() + " " + pancake.getPrice());

        pancake = new FriedEggDecorator(pancake);
        System.out.println(pancake.getMsg() + " " + pancake.getPrice());

        pancake = new SausageDecorator(pancake);
        System.out.println(pancake.getMsg() + " " + pancake.getPrice());
    }
}
